package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineCourseNode = "online_course_node"

func init() {
	var r = &OnlineCourseNode{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineCourseNode struct {
	CourseNodeId int    `modify:"false" json:"courseNodeId" form:"courseNodeId" column:"course_node_id" primary:"true"`
	StudentId    int    `json:"studentId" form:"studentId" column:"student_id" modify:"true"`
	ClassId      int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	CourseId     int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId       int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	NodeId       int    `json:"nodeId" form:"nodeId" column:"node_id" modify:"true"`
	NodeType     int    `json:"nodeType" form:"nodeType" column:"node_type" modify:"true"`
	NodeName     string `column:"node_name" modify:"true" json:"nodeName" form:"nodeName"`
	Score        int    `json:"score" form:"score" column:"score" modify:"true"`
	Accuracy     int    `json:"accuracy" form:"accuracy" column:"accuracy" modify:"true"`
	IsFinish     int    `json:"isFinish" form:"isFinish" column:"is_finish" modify:"true"`
	IsSupply     int    `modify:"true" json:"isSupply" form:"isSupply" column:"is_supply"`
	TimeUsed     int    `json:"timeUsed" form:"timeUsed" column:"time_used" modify:"true"`
	StartTime    string `json:"startTime" form:"startTime" column:"start_time" modify:"true"`
	EndTime      string `form:"endTime" column:"end_time" modify:"true" json:"endTime"`
	CreateTime   string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime   string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineCourseNode) Name() string {
	return RecordNameOnlineCourseNode
}
